<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/21
 * Time: 14:47
 */
namespace app\api\controller\v1;
use app\common\model\Message as MessageModel;
class Message extends Base {
    private $model;
    public function _initialize(){
        parent::_initialize();
        $this->model = new MessageModel;
    }
    //获取首页具体菜单信息
    public function getIndex(){
        $res = $this->model->getMenulist();
        //添加域名
        addDomain($res,'iconurl');
        return show(200,'获取数据成功',$res);

    }
}